//
//  NearCell.m
//  ieGou
//
//  Created by 潮汐 on 15-1-28.
//  Copyright (c) 2015年 chaox. All rights reserved.
//

#import "NearCell.h"

@implementation NearCell
- (void)dealloc
{
    [_myImage release];
    [_tImage release];
    [_aLabel release];
    [_bLabel release];
    [_cLabel release];
    [_dLabel release];
    [_eLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.myImage = [[UIImageView alloc]init];
        self.myImage.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:_myImage];
        [_myImage release];
        
        self.tImage = [[UIImageView alloc]init];
        self.tImage.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_tImage];
        [_tImage release];
        
        self.aLabel = [[UILabel alloc]init];
        _aLabel.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:_aLabel];
        [_aLabel release];
        
        self.bLabel = [[UILabel alloc]init];
        _bLabel.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_bLabel];
        [_bLabel release];
        
        self.cLabel = [[UILabel alloc]init];
        _cLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_cLabel];
        [_cLabel release];
        //评分
        self.dLabel = [[UILabel alloc]init];
        _dLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:_dLabel];
        [_dLabel release];
        //距离
        self.eLabel = [[UILabel alloc]init];
        _eLabel.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:_eLabel];
        [_eLabel release];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myImage.frame = CGRectMake(15, 15, 120, 100);
    self.aLabel.frame = CGRectMake(150, 15, 150, 30);
    self.tImage.frame = CGRectMake(330, 15, 30, 30);
    self.bLabel.frame = CGRectMake(150, 60, 100, 20);
    self.cLabel.frame = CGRectMake(270, 60, 100, 20);
    self.dLabel.frame = CGRectMake(270, 95, 40, 20);
    self.eLabel.frame = CGRectMake(330, 95,50 , 20);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
